export default {
  path: '/user',
  component: () => import(/* webpackChunkName: 'user' */ '@/views/user'),
  redirect: '/user/login',
  children: [
    {
      path: 'login',
      component: resolve => require(['@/views/user/login'], resolve),
      meta: { title: '会员登录' }
    },
    {
      path: 'register',
      component: resolve => require(['@/views/user/register'], resolve),
      meta: { title: '注册' }
    },
    {
      path: 'forget',
      component: resolve => require(['@/views/user/forget'], resolve),
      meta: { title: '忘记密码' }
    },
    {
      path: 'agreement',
      component: resolve => require(['@/views/user/agreement'], resolve),
      meta: { title: '注册协议' }
    },
    {
      path: 'openid/:redirect?',
      component: resolve => require(['@/views/user/openid'], resolve),
      meta: { title: '获取用户微信openid' }
    },
    {
      path: 're-password',
      component: resolve => require(['@/views/user/re-password'], resolve),
      meta: { title: '修改密码' }
    },
    // openid
    {
      path: 'openid/:redirect?',
      component: resolve => require(['@/views/user/openid'], resolve),
      meta: { title: '获取用户微信openid' }
    }
  ]
}
